package test3_25.demo06;

import java.util.Arrays;

public class Judge {

    public boolean same(String a,String b){
        if(a.length() != b.length()){
            return false;
        }

        char[] arr1 = a.toCharArray();
        char[] arr2 = b.toCharArray();

        Arrays.sort(arr1);
        Arrays.sort(arr2);

        return Arrays.equals(arr1,arr2);

    }

}
